using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;

using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
using System.Linq;

namespace ILRuntime.Runtime.Generated
{
    unsafe class huqiang_UIComposite_UIRocker_Binding
    {
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase method;
            FieldInfo field;
            Type[] args;
            Type type = typeof(huqiang.UIComposite.UIRocker);
            args = new Type[]{};
            method = type.GetMethod("get_Radius", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Radius_0);
            args = new Type[]{typeof(System.Single)};
            method = type.GetMethod("set_Radius", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Radius_1);
            args = new Type[]{};
            method = type.GetMethod("get_Slider", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Slider_2);
            args = new Type[]{};
            method = type.GetMethod("get_Angle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Angle_3);
            args = new Type[]{typeof(System.Single)};
            method = type.GetMethod("set_Angle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Angle_4);
            args = new Type[]{};
            method = type.GetMethod("get_direction", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_direction_5);
            args = new Type[]{typeof(huqiang.UIComposite.UIRocker.Direction)};
            method = type.GetMethod("set_direction", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_direction_6);
            args = new Type[]{typeof(huqiang.Data.FakeStruct), typeof(huqiang.Core.HGUI.UIElement), typeof(huqiang.Core.HGUI.UIInitializer)};
            method = type.GetMethod("Initial", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Initial_7);

            field = type.GetField("Nob", flag);
            app.RegisterCLRFieldGetter(field, get_Nob_0);
            app.RegisterCLRFieldSetter(field, set_Nob_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Nob_0, AssignFromStack_Nob_0);
            field = type.GetField("callBack", flag);
            app.RegisterCLRFieldGetter(field, get_callBack_1);
            app.RegisterCLRFieldSetter(field, set_callBack_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_callBack_1, AssignFromStack_callBack_1);
            field = type.GetField("vector", flag);
            app.RegisterCLRFieldGetter(field, get_vector_2);
            app.RegisterCLRFieldSetter(field, set_vector_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_vector_2, AssignFromStack_vector_2);
            field = type.GetField("Rocking", flag);
            app.RegisterCLRFieldGetter(field, get_Rocking_3);
            app.RegisterCLRFieldSetter(field, set_Rocking_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_Rocking_3, AssignFromStack_Rocking_3);


            app.RegisterCLRCreateDefaultInstance(type, () => new huqiang.UIComposite.UIRocker());
            app.RegisterCLRCreateArrayInstance(type, s => new huqiang.UIComposite.UIRocker[s]);

            args = new Type[]{};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);

        }


        static StackObject* get_Radius_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.UIRocker instance_of_this_method = (huqiang.UIComposite.UIRocker)typeof(huqiang.UIComposite.UIRocker).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Radius;

            __ret->ObjectType = ObjectTypes.Float;
            *(float*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static StackObject* set_Radius_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @value = *(float*)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.UIRocker instance_of_this_method = (huqiang.UIComposite.UIRocker)typeof(huqiang.UIComposite.UIRocker).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Radius = value;

            return __ret;
        }

        static StackObject* get_Slider_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.UIRocker instance_of_this_method = (huqiang.UIComposite.UIRocker)typeof(huqiang.UIComposite.UIRocker).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Slider;

            __ret->ObjectType = ObjectTypes.Float;
            *(float*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static StackObject* get_Angle_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.UIRocker instance_of_this_method = (huqiang.UIComposite.UIRocker)typeof(huqiang.UIComposite.UIRocker).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Angle;

            __ret->ObjectType = ObjectTypes.Float;
            *(float*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static StackObject* set_Angle_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @value = *(float*)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.UIRocker instance_of_this_method = (huqiang.UIComposite.UIRocker)typeof(huqiang.UIComposite.UIRocker).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Angle = value;

            return __ret;
        }

        static StackObject* get_direction_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.UIRocker instance_of_this_method = (huqiang.UIComposite.UIRocker)typeof(huqiang.UIComposite.UIRocker).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.direction;

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* set_direction_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.UIRocker.Direction @value = (huqiang.UIComposite.UIRocker.Direction)typeof(huqiang.UIComposite.UIRocker.Direction).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)20);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.UIRocker instance_of_this_method = (huqiang.UIComposite.UIRocker)typeof(huqiang.UIComposite.UIRocker).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.direction = value;

            return __ret;
        }

        static StackObject* Initial_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 4);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Core.HGUI.UIInitializer @initializer = (huqiang.Core.HGUI.UIInitializer)typeof(huqiang.Core.HGUI.UIInitializer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.Core.HGUI.UIElement @script = (huqiang.Core.HGUI.UIElement)typeof(huqiang.Core.HGUI.UIElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            huqiang.Data.FakeStruct @fake = (huqiang.Data.FakeStruct)typeof(huqiang.Data.FakeStruct).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            huqiang.UIComposite.UIRocker instance_of_this_method = (huqiang.UIComposite.UIRocker)typeof(huqiang.UIComposite.UIRocker).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Initial(@fake, @script, @initializer);

            return __ret;
        }


        static object get_Nob_0(ref object o)
        {
            return ((huqiang.UIComposite.UIRocker)o).Nob;
        }

        static StackObject* CopyToStack_Nob_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.UIRocker)o).Nob;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Nob_0(ref object o, object v)
        {
            ((huqiang.UIComposite.UIRocker)o).Nob = (huqiang.Core.HGUI.UIElement)v;
        }

        static StackObject* AssignFromStack_Nob_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Core.HGUI.UIElement @Nob = (huqiang.Core.HGUI.UIElement)typeof(huqiang.Core.HGUI.UIElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.UIRocker)o).Nob = @Nob;
            return ptr_of_this_method;
        }

        static object get_callBack_1(ref object o)
        {
            return ((huqiang.UIComposite.UIRocker)o).callBack;
        }

        static StackObject* CopyToStack_callBack_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.UIRocker)o).callBack;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_callBack_1(ref object o, object v)
        {
            ((huqiang.UIComposite.UIRocker)o).callBack = (huqiang.UIEvent.UserEvent)v;
        }

        static StackObject* AssignFromStack_callBack_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.UIEvent.UserEvent @callBack = (huqiang.UIEvent.UserEvent)typeof(huqiang.UIEvent.UserEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.UIRocker)o).callBack = @callBack;
            return ptr_of_this_method;
        }

        static object get_vector_2(ref object o)
        {
            return ((huqiang.UIComposite.UIRocker)o).vector;
        }

        static StackObject* CopyToStack_vector_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.UIRocker)o).vector;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_vector_2(ref object o, object v)
        {
            ((huqiang.UIComposite.UIRocker)o).vector = (UnityEngine.Vector2)v;
        }

        static StackObject* AssignFromStack_vector_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Vector2 @vector = (UnityEngine.Vector2)typeof(UnityEngine.Vector2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
            ((huqiang.UIComposite.UIRocker)o).vector = @vector;
            return ptr_of_this_method;
        }

        static object get_Rocking_3(ref object o)
        {
            return ((huqiang.UIComposite.UIRocker)o).Rocking;
        }

        static StackObject* CopyToStack_Rocking_3(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.UIRocker)o).Rocking;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Rocking_3(ref object o, object v)
        {
            ((huqiang.UIComposite.UIRocker)o).Rocking = (System.Action<huqiang.UIComposite.UIRocker>)v;
        }

        static StackObject* AssignFromStack_Rocking_3(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Action<huqiang.UIComposite.UIRocker> @Rocking = (System.Action<huqiang.UIComposite.UIRocker>)typeof(System.Action<huqiang.UIComposite.UIRocker>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)8);
            ((huqiang.UIComposite.UIRocker)o).Rocking = @Rocking;
            return ptr_of_this_method;
        }



        static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new huqiang.UIComposite.UIRocker();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


    }
}
